Director Article

Tweening FX with the Chrome Library Set of 3D Behaviors for Shockwave 3D


Table of Contents

  1. Introduction
  2. The Scene Fade Behavior with the goldfish_hq.w3d File
  3. The Light Color Tweening Behavior with the suv_ford_hq.W3D File
  4. The Emissive Color Tweening Behavior with the tortoise_hq.w3d File
  5. The Fog Tweening Behavior with the tyrannosaurus_rex_hq.w3d File

The Scene Fade Behavior with the goldfish_hq.w3d File

To start, you must first download, unzip, and copy the Chrome Library set of behaviors to the Director 3D Libs folder. On Windows, this is c:\program files\Macromedia\Director MX\Libs\3D. On Macintosh, this is Hard Drive | Applications | Macromedia Director MX | Libs | 3D.You can download the behaviors using the link at the beginning of this article. After installing the Chrome Library, select Window > Library Palette then 3D > Chrome Lib > 3D.

You re going to apply a fade in effect to the 3D scene by overlaying a black bitmap that automatically adapts to the size of the camera rectangle and by changing its blend over time (from 100 to 0; opaque to transparent). The lower the overlay blend value, the more visible the scene.

  1. Create a new movie.
  2. Import the goldfish_hq.w3d file into the internal cast.
  3. Drag and drop the goldfish cast member from the internal cast to the stage or to the score.

    The goldfish before the Scene Fade behavior has been applied to it

    Figure 1. The goldfish before you have applied the Scene Fade behavior to it.

  4. Drag and drop the Scene Fade behavior from the Chrome Lib onto the W3D sprite.

    The Scene Fade behavior

    Figure 2. The Scene Fade behavior

    The Scene Fade Parameters dialog box appears.

    The Scene Fade Parameters dialog box

    Figure 3. The Scene Fade Parameters dialog box

  5. Select fadeIn as Fade Type and black as Fade Color then click OK.

    Press Play in the toolbar or press the Enter key on the numeric keypad.

    The goldfish fading in

    Figure 4. The goldfish fading in

  6. Select Control > Play to play the movie.

    The movie starts and a black opaque overlay the size of the screen appears, hiding the goldfish. Then, the overlay blend decreases until the overlay becomes fully transparent.